export const IsInt=function(input: string):  boolean {
    const num = parseInt(input);
    return  !isNaN(num);
};
export const IsByte=function(input: string):  boolean {
    const num = parseInt(input);
    if(!isNaN(num)){
        return  num<256;;
    }
    return  false;
};
export const IsBigInt=function(input: string):  boolean {
    const num = parseFloat(input);
    if(!isNaN(num)){
        return Number.isInteger(num); 
    }
    return    false;
};


export const IsNumber=function(input: string):  boolean {
    const num = parseFloat(input);
    if(!isNaN(num)){
        return true
    }
    return    false;
};

export const IsDate=function(input: string):  boolean {
    const num = Date.parse(input);
    if(!isNaN(num)){
        return true
    }
    return    false;
};
 
export const toBool=function(input: string):  boolean {
    if(!input){
        return false;
    }
    return input.toLowerCase()=="true";
     
};

